package com.hz.airline.dao;

import com.hz.airline.entity.User;
import org.springframework.data.repository.CrudRepository;

/**
 * Created by kevin on 2020/2/1 23:53
 */
public interface UserAccountDao extends CrudRepository<User, Integer> {

    User findByUserid(String userid);

    User findByMobileAndPassword(String mobile, String password);

    User findByMobileAndIdnumberAndEmail(String mobile, String idnumber, String email);

    User findByMobileAndUsernameAndIdnumber(String mobile, String username, String idnumber);

    User findByMobileAndIdnumberAndUsername(String mobile, String idnumber, String username);
}
